﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using CoyoEden.Models;
using SubSonic.Repository; 
namespace CoyoEden.Tests.Models
{
	[TestFixture]
	public class AlbumTests
	{
		[Test]
		public void can_create()
		{
			//arrange
			var obj = new Album() { 
				Title="xxxxxxxxxx",
				AuthorProfile=new SimpleAuthorProfile{
					Name="yoyo",Email="xx@yy.com",NickName="Levin",Website="http://vivasky.com"
				},
				Description="xxx"
			};
			//act
			var repo = new SimpleRepository("CoyoEden", SimpleRepositoryOptions.RunMigrations);
			repo.Add<Album>(obj);
			//assert

		}  
	}
}
